<?php

declare(strict_types=1);

namespace App\Robot\Crontab;

use App\CustHub\Service\ChRoomMemberWarningService;
use Hyperf\Di\Annotation\Inject;

class ClearRoomWarningsCrontab
{
    #[Inject]
    protected ChRoomMemberWarningService $warningService;

    public function execute(): string
    {
        $this->warningService->clearRoomWarnings();
        return 'send crowd_sending successfully';
    }
}